using System;
using SqlSugar;

namespace PMP.Core.Entities;

public class TbAccountScore : BaseEntity
{
    /// <summary>
    /// 账号id
    /// </summary>
    public int AccountId { get; set; }
    /// <summary>
    /// 年份
    /// </summary>
    public int Year { get; set; }
    /// <summary>
    /// 项目推荐
    /// </summary>
    public double ProjectRecommendationScore { get; set; }
    /// <summary>
    /// 团队发展
    /// </summary>
    public double TeamDevelopmentScore { get; set; }
    /// <summary>
    /// 业务达成
    /// </summary>
    public double BusinessAchievementScore { get; set; }
    /// <summary>
    /// 响应时间
    /// </summary>
    public double ResponseTimeScore { get; set; }
    /// <summary>
    /// 响应时间
    /// </summary>
    public double ResponseTime { get; set; }
    /// <summary>
    /// 总分
    /// </summary>
    [SugarColumn(IsIgnore = true)]
    public double TotalScore => Math.Round(ProjectRecommendationScore + TeamDevelopmentScore + BusinessAchievementScore + ResponseTimeScore);
    /// <summary>
    /// 所有人平均总分
    /// </summary>
    [SugarColumn(IsIgnore = true)]
    public double AvgTotalScore { get; set; }
}